package com.train.common.utils.filter;

import com.alibaba.fastjson.support.spring.PropertyPreFilters;

public class SensitiveFilterUtils {

    /**
     * 过滤敏感信息
     */
    public static PropertyPreFilters.MySimplePropertyPreFilter filter(String... excludeProperties) {
        PropertyPreFilters filters = new PropertyPreFilters();
        PropertyPreFilters.MySimplePropertyPreFilter filter = filters.addFilter();
        return filter.addExcludes(excludeProperties);
    }
}
